drm: Create a driver hook for allocating GEM object structs.
authorEric Anholt <eric@anholt.net>
Mon, 30 Nov 2015 18:55:13 +0000 (10:55 -0800)
committerBen Hutchings <ben@decadent.org.uk>
Thu, 17 Mar 2016 01:25:23 +0000 (01:25 +0000)
commit35ecc0c2964c9b87b0c58fc55fbbda344029690d
treee8c728c8f8157b12e04bc18258ccbb3a11b73337
parent1e20f8097731a4a8b821976b2fab07da15a05f48
drm: Create a driver hook for allocating GEM object structs.

The CMA helpers had no way for a driver to extend the struct with its
own fields.  Since the CMA helpers are mostly "Allocate a
drm_gem_cma_object, then fill in a few fields", it's hard to write as
pure helpers without passing in a driver callback for the allocate
step.

Signed-off-by: Eric Anholt <eric@anholt.net>
Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Gbp-Pq: Topic features/arm/rpi
Gbp-Pq: Name drm-create-a-driver-hook-for-allocating-gem-object-s.patch
drivers/gpu/drm/drm_gem_cma_helper.c
include/drm/drmP.h